package shark.user.spi.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import shark.user.spi.entity.SysUser;

@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUser> getUserByDeptId(Page page, @Param("deptId") String deptId);

    IPage<SysUser> getUserByRoleId(Page page, @Param("roleId") String roleId);
}
